<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
class Filecontrol
{
   //递归创建文件夹
   public function mkdirs($path)
    {
     if(!is_dir($path))
    {
        if(!$this->mkdirs(dirname($path)))
        {
            return FALSE;
        }
        if(!mkdir($path,0777))
        {
            return FALSE;
        }
    }
    return TRUE;
    }
}
